<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class FinanceRecord extends Model
{
    use SoftDeletes;
    protected $table = 'finance_records';

    public function courseClass(){
        return $this->belongsTo('App\Models\CourseClass','course_class_id');
    }

    public function financeAccount(){
        return $this->belongsTo('App\Models\FinanceAccount','finance_account_id');
    }

    public function user(){
        return $this->belongsTo('App\User','user_id');
    }
}
